<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS.ViewModel" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:2966/SysApprovalService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" />
  <xs:import schemaLocation="http://localhost:2966/SysApprovalService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" />
  <xs:import schemaLocation="http://localhost:2966/SysApprovalService.svc?xsd=xsd6" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:complexType name="GetAppPrcIdVM">
    <xs:sequence>
      <xs:element minOccurs="0" name="Amount" type="xs:decimal" />
      <xs:element minOccurs="0" name="AppPrcGrpId" type="xs:int" />
      <xs:element minOccurs="0" name="AppPrcId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RefId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GetAppPrcIdVM" nillable="true" type="tns:GetAppPrcIdVM" />
  <xs:complexType name="CreateTaskVM">
    <xs:sequence>
      <xs:element minOccurs="0" name="Amount" type="xs:decimal" />
      <xs:element minOccurs="0" name="AppPrcGrpId" type="xs:int" />
      <xs:element minOccurs="0" name="AppPrcId" type="xs:int" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="ApplyToByEmployee" nillable="true" type="q1:Employee" />
      <xs:element minOccurs="0" name="ApplyToEmpId" type="xs:int" />
      <xs:element minOccurs="0" name="ApproveAs" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ConfirmAs" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreateByEmpId" type="xs:int" />
      <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="CreateByEmployee" nillable="true" type="q2:Employee" />
      <xs:element minOccurs="0" name="CreateErrorResult" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreateResult" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RefCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RefId" type="xs:int" />
      <xs:element minOccurs="0" name="Remark" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaskCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaskId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Title" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CreateTaskVM" nillable="true" type="tns:CreateTaskVM" />
  <xs:complexType name="ActionTaskVM">
    <xs:sequence>
      <xs:element minOccurs="0" name="ByEmpId" type="xs:int" />
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="ByEmployee" nillable="true" type="q3:Employee" />
      <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="CommandAction" type="q4:CommandAction" />
      <xs:element minOccurs="0" name="CommandActionErrorResult" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CommandActionResult" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NewTitle" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="TaskHistory" nillable="true" type="q5:TaskHistory" />
      <xs:element minOccurs="0" name="TaskHistoryId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="TaskId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ActionTaskVM" nillable="true" type="tns:ActionTaskVM" />
  <xs:complexType name="UnwarnTaskCountVM">
    <xs:sequence>
      <xs:element xmlns:q6="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="AllUnreadTaskIds" nillable="true" type="q6:ArrayOfint" />
      <xs:element xmlns:q7="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="AllUnwarnTaskIds" nillable="true" type="q7:ArrayOfint" />
      <xs:element minOccurs="0" name="EmpId" type="xs:int" />
      <xs:element xmlns:q8="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="MyRequestAllUnreadTaskIds" nillable="true" type="q8:ArrayOfint" />
      <xs:element xmlns:q9="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="MyRequestAllUnwarnTaskIds" nillable="true" type="q9:ArrayOfint" />
      <xs:element xmlns:q10="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="MyRequestCanceledResponsedUnreadTaskIds" nillable="true" type="q10:ArrayOfint" />
      <xs:element xmlns:q11="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="MyRequestCanceledUnwarnTaskIds" nillable="true" type="q11:ArrayOfint" />
      <xs:element xmlns:q12="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="MyRequestResponsedUnreadTaskIds" nillable="true" type="q12:ArrayOfint" />
      <xs:element xmlns:q13="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="MyRequestResponsedUnwarnTaskIds" nillable="true" type="q13:ArrayOfint" />
      <xs:element minOccurs="0" name="PosId" type="xs:int" />
      <xs:element xmlns:q14="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="ResponsedUnreadTaskIds" nillable="true" type="q14:ArrayOfint" />
      <xs:element xmlns:q15="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="ResponsedUnwarnTaskIds" nillable="true" type="q15:ArrayOfint" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="UnwarnTaskCountVM" nillable="true" type="tns:UnwarnTaskCountVM" />
  <xs:complexType name="CheckAbsenceRuleResultVM">
    <xs:sequence>
      <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="Absence" nillable="true" type="q16:PsAbsence" />
      <xs:element minOccurs="0" name="AbsenceId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="AbsenceTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="BgYear" type="xs:int" />
      <xs:element minOccurs="0" name="CheckListItem" nillable="true" type="tns:ArrayOfCheckAbsenceRuleResultItemVM" />
      <xs:element minOccurs="0" name="CreateBy" type="xs:int" />
      <xs:element minOccurs="0" name="CreateDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DayLimit" type="xs:decimal" />
      <xs:element minOccurs="0" name="EmpId" type="xs:int" />
      <xs:element minOccurs="0" name="EndDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EndTime" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsError" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsWarning" type="xs:boolean" />
      <xs:element minOccurs="0" name="MyAllAndRequestDayCount" type="xs:decimal" />
      <xs:element minOccurs="0" name="MyAllAndRequestTimeCount" type="xs:decimal" />
      <xs:element minOccurs="0" name="MyAllDayCount" type="xs:decimal" />
      <xs:element minOccurs="0" name="MyAllTimeCount" type="xs:decimal" />
      <xs:element minOccurs="0" name="QuotaLeaveCountDaysBefore" type="xs:decimal" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RequestDayCount" type="xs:decimal" />
      <xs:element minOccurs="0" name="RequestTimeCount" type="xs:decimal" />
      <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="RuleAbsence" nillable="true" type="q17:RuleAbsence" />
      <xs:element minOccurs="0" name="StartDate" type="xs:dateTime" />
      <xs:element minOccurs="0" name="StartTime" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CheckAbsenceRuleResultVM" nillable="true" type="tns:CheckAbsenceRuleResultVM" />
  <xs:complexType name="ArrayOfCheckAbsenceRuleResultItemVM">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="CheckAbsenceRuleResultItemVM" nillable="true" type="tns:CheckAbsenceRuleResultItemVM" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCheckAbsenceRuleResultItemVM" nillable="true" type="tns:ArrayOfCheckAbsenceRuleResultItemVM" />
  <xs:complexType name="CheckAbsenceRuleResultItemVM">
    <xs:sequence>
      <xs:element minOccurs="0" name="CheckTitle" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsError" type="xs:boolean" />
      <xs:element minOccurs="0" name="IsWarning" type="xs:boolean" />
      <xs:element minOccurs="0" name="Reasons" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CheckAbsenceRuleResultItemVM" nillable="true" type="tns:CheckAbsenceRuleResultItemVM" />
</xs:schema>